﻿#region 命名空间

using System;
using Microsoft.Practices.Unity.InterceptionExtension;


#endregion

namespace WinnerCMS.BLL
{
    /// <summary>
    /// 验证定制特性
    /// </summary>
    public class ValidationAttribute : HandlerAttribute
    {
        /// <summary>
        /// 验证类型名称
        /// </summary>
        public Type Type { get; set; }


        public override ICallHandler CreateHandler(Microsoft.Practices.Unity.IUnityContainer container)
        {
            return new ValidationHandler(Type, Order);
        }


        public ValidationAttribute(Type type)
        {
            Type = type;
        }
    }
}